<?php

namespace App\Admin\Controllers;

use App\Models\Activity;

use Encore\Admin\Form;
use Encore\Admin\Grid;
use Encore\Admin\Facades\Admin;
use Encore\Admin\Layout\Content;
use App\Http\Controllers\Controller;
use Encore\Admin\Controllers\ModelForm;

class HuoshanController extends Controller
{
    use ModelForm;

    public function index()
    {
        return Admin::content(function (Content $content) {

            $content->header('火山小视频');
            $content->description('不想写描述');

            $content->body($this->grid());
        });
    }


    protected function grid()
    {
        return Admin::grid(Activity::class, function (Grid $grid) {

            $grid->id('ID')->sortable();
            // $grid->name('活动名称');
            $grid->created_at('创建时间');
            $grid->updated_at('更新时间');
        });
    }
}
